package com.darren.archive.task;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


@Component
public class TimerJob {

	private Logger logger = LogManager.getLogger(TimerJob.class);
	

	@Scheduled(cron = "0 0/1 * * * ?")
	public void timerJobTest() {			
		try{
			logger.info("System parameters job launch total time ..." + System.currentTimeMillis());
		}catch(Exception e){
			logger.error(e.getMessage(),e);
		}
	}

	
}
